
import { createRouter, createWebHistory } from "vue-router";

import Layout from "@/layout/Index.vue"

let routes = [
  {
    path: '/',
    component: Layout,
    name: 'personalCenter',
    redirect: '/personalCenter/echart',
    meta: {
      title: '个人中心',
      icon: 'dashboard'
    },
    children: [
      {
        path: '/personalCenter/personalData',
        component: () => import('@/view/personalCenter/personalData/index.vue'),
        name: 'personalData',
        hidden: true,
        meta: {
          title: '个人资料',
          icon: 'dashboard'
        }
      },
      {
        /* path: '/personalCenter/echart',
        name: 'layoutIframeViewTwo',
        component: () => import('@/layout/routerView/link.vue'),
        meta: {
          title: '用户控制台',
          isLink: 'http://119.45.226.216:8888/xxl-job-admin/',
          isHide: false,
          isIframe: false,
          icon: 'dashboard',
        }, */



        path: '/personalCenter/echart',
        component: () => import('@/view/personalCenter/echart/index.vue'),
        name: 'echart',
        hidden: true,
        meta: {
          title: '用户控制台',
          icon: 'dashboard'
        }
      },
    ]
  },
  {
    path: "/login",
    name: "login",
    component: () => import('@/view/login/index.vue')
  },

]
// 路由
const router = createRouter({
  history: createWebHistory(),
  routes
})
// 导出
export default router 